# -*- coding: utf-8 -*- 
from odoo import models, fields, api


class TreeButton(models.Model):
    _name = 'tree.button'
    _rec_name = 'name'
    _description = u'随便定义的一个模型'

    name = fields.Char(u'名称')

    @api.model
    def func(self):
        print u'123'
        return '123'
